package myky.com.doctorapp.model;

import com.xiangyao.train.utils.RxScedulerHelper;

import io.reactivex.Observable;
import myky.com.doctorapp.api.ApiManager;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.contract.HealthPersonInfoContract;
import myky.com.doctorapp.entity.HealthRecordEntity;

public class HealthPersonInfoModel implements HealthPersonInfoContract.Model {
    @Override
    public Observable<BaseEntity<HealthRecordEntity>> getPersionInfo() {



        return ApiManager.getApistore().findHealthRecord().compose(RxScedulerHelper.INSTANCE.io_main());
    }

    @Override
    public Observable<BaseEntity<HealthRecordEntity.PerProfileBean>> healthContacts() {
        return ApiManager.getApistore().healthContacts().compose(RxScedulerHelper.INSTANCE.io_main());
    }
}
